(function(e){"use strict";var t=function(){function e(){babelHelpers.classCallCheck(this,e);this._components={};this._mutations={};this._clones={};this.event=new Vue({})}babelHelpers.createClass(e,[{key:"create",value:function e(t){return new Vue(t)}},{key:"component",value:function e(t,n){this._components[t]=Object.assign({},n);if(typeof this._clones[t]!=="undefined"){this._registerCloneComponent(t)}return Vue.component(t,this._getComponentParamsWithMutation(t,this._mutations[t]))}},{key:"mutateComponent",value:function e(t,n){var i=this;if(typeof this._mutations[t]==="undefined"){this._mutations[t]=[]}this._mutations[t].push(n);if(typeof this._components[t]!=="undefined"){this.component(t,this._components[t])}return function(){i._mutations[t]=i._mutations[t].filter(function(e){return e!==n})}}},{key:"cloneComponent",value:function e(t,n,i){if(typeof this._clones[n]==="undefined"){this._clones[n]={}}this._clones[n][t]={id:t,sourceId:n,mutations:i};if(typeof this._components[n]!=="undefined"){this._registerCloneComponent(n,t)}return true}},{key:"isComponent",value:function e(t){return typeof this._components[t]!=="undefined"}},{key:"extend",value:function e(t){return Vue.extend(t)}},{key:"nextTick",value:function e(t,n){return Vue.nextTick(t,n)}},{key:"set",value:function e(t,n,i){return Vue.set(t,n,i)}},{key:"delete",value:function e(t,n){return Vue.delete(t,n)}},{key:"directive",value:function e(t,n){return Vue.directive(t,n)}},{key:"filter",value:function e(t,n){return Vue.filter(t,n)}},{key:"use",value:function e(t){return Vue.use(t)}},{key:"mixin",value:function e(t){return Vue.mixin(t)}},{key:"compile",value:function e(t){return Vue.compile(t)}},{key:"version",value:function e(){return Vue.version}},{key:"getFilteredPhrases",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var i={};if(!n&&typeof BX.message!=="undefined"){n=BX.message}for(var o in n){if(!n.hasOwnProperty(o)){continue}if(!o.startsWith(t)){continue}i[o]=n[o]}return Object.freeze(i)}},{key:"_getComponentParamsWithMutation",value:function e(t,n){var i=this;if(typeof this._components[t]==="undefined"){return null}var o=Object.assign({},this._components[t]);if(typeof n==="undefined"){return o}n.forEach(function(e){o=i._applyMutation(i._cloneObjectWithoutDuplicateFunction(o,e),e)});return o}},{key:"_registerCloneComponent",value:function e(t){var n=this;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var o=[];if(i){if(typeof this._clones[t][i]!=="undefined"){o.push(this._clones[t][i])}}else{for(var s in this._clones[t]){if(!this._clones[t].hasOwnProperty(s)){continue}o.push(this._clones[t][s])}}o.forEach(function(e){var t=[];if(typeof n._mutations[e.sourceId]!=="undefined"){t=t.concat(n._mutations[e.sourceId])}t.push(e.mutations);var i=n._getComponentParamsWithMutation(e.sourceId,t);if(!i){return false}n.component(e.id,i)})}},{key:"_cloneObjectWithoutDuplicateFunction",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var o={};for(var s in t){if(!t.hasOwnProperty(s)){continue}if(typeof t[s]==="string"){o[s]=t[s]}else if(Object.prototype.toString.call(t[s])==="[object Array]"){o[s]=[].concat(t[s])}else if(babelHelpers.typeof(t[s])==="object"){if(t[s]===null){o[s]=null}else if(babelHelpers.typeof(n[s])==="object"){o[s]=this._cloneObjectWithoutDuplicateFunction(t[s],n[s],i+1)}else{o[s]=Object.assign({},t[s])}}else if(typeof t[s]==="function"){if(typeof n[s]!=="function"){o[s]=t[s]}else if(i>1){o["parent"+s[0].toUpperCase()+s.substr(1)]=t[s]}else{if(typeof o["methods"]==="undefined"){o["methods"]={}}o["methods"]["parent"+s[0].toUpperCase()+s.substr(1)]=t[s];if(typeof t["methods"]==="undefined"){t["methods"]={}}t["methods"]["parent"+s[0].toUpperCase()+s.substr(1)]=t[s]}}else if(typeof t[s]!=="undefined"){o[s]=t[s]}}return o}},{key:"_applyMutation",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=Object.assign({},t);for(var o in n){if(!n.hasOwnProperty(o)){continue}if(typeof n[o]==="string"){if(typeof i[o]==="string"){i[o]=n[o].replace("#PARENT_".concat(o.toUpperCase(),"#"),i[o])}else{i[o]=n[o].replace("#PARENT_".concat(o.toUpperCase(),"#"),"")}}else if(Object.prototype.toString.call(n[o])==="[object Array]"){i[o]=[].concat(n[o])}else if(babelHelpers.typeof(n[o])==="object"){if(babelHelpers.typeof(i[o])==="object"){i[o]=this._applyMutation(i[o],n[o])}else{i[o]=n[o]}}else{i[o]=n[o]}}return i}},{key:"testNode",value:function e(t,n){if(!n||babelHelpers.typeof(n)!=="object"){return true}var i,o,s;for(i in n){if(!n.hasOwnProperty(i)){continue}switch(i){case"tag":case"tagName":if(typeof n[i]==="string"){if(t.tagName.toUpperCase()!==n[i].toUpperCase()){return false}}else if(n[i]instanceof RegExp){if(!n[i].test(t.tagName)){return false}}break;case"class":case"className":if(typeof n[i]==="string"){if(!t.classList.contains(n[i].trim())){return false}}else if(n[i]instanceof RegExp){if(typeof t.className!=="string"||!n[i].test(t.className)){return false}}break;case"attr":case"attrs":case"attribute":if(typeof n[i]==="string"){if(!t.getAttribute(n[i])){return false}}else if(n[i]&&Object.prototype.toString.call(n[i])==="[object Array]"){for(o=0,s=n[i].length;o<s;o++){if(n[i][o]&&!t.getAttribute(n[i][o])){return false}}}else{for(o in n[i]){if(!n[i].hasOwnProperty(o)){continue}var r=t.getAttribute(o);if(typeof r!=="string"){return false}if(n[i][o]instanceof RegExp){if(!n[i][o].test(r)){return false}}else if(r!==""+n[i][o]){return false}}}break;case"property":case"props":if(typeof n[i]==="string"){if(!t[n[i]]){return false}}else if(n[i]&&Object.prototype.toString.call(n[i])=="[object Array]"){for(o=0,s=n[i].length;o<s;o++){if(n[i][o]&&!t[n[i][o]]){return false}}}else{for(o in n[i]){if(!n[i].hasOwnProperty(o)){continue}if(typeof n[i][o]==="string"){if(t[o]!=n[i][o]){return false}}else if(n[i][o]instanceof RegExp){if(typeof t[o]!=="string"||!n[i][o].test(t[o])){return false}}}}break}}return true}}]);return e}();if(!window.BX){window.BX={}}if(!window.BX.Vue){window.BX.Vue=new t}})(this.window=this.window||{});
//# sourceMappingURL=ui.vue.bitrix.bundle.map.js